<?php
    $themeUrl = Yii::app()->theme->baseUrl;
    Yii::app()->getClientScript()->registerCoreScript('jquery');
?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--><html lang="en"><!--<![endif]-->

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="description" content="">
<meta name="author" content="">
<!-- Bootstrap Stylesheet -->
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/bootstrap/css/bootstrap.min.css" media="screen">

<!-- jquery-ui Stylesheets -->
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/assets/jui/jquery-ui.custom.css" media="screen">
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/assets/jui/timepicker/jquery-ui-timepicker.css" media="screen">

<!-- Uniform Stylesheet -->
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/plugins/uniform/css/uniform.default.css">

<!-- Plugin Stylsheets first to ease overrides -->

<!-- iButton -->
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/plugins/ibutton/jquery.ibutton.css" media="screen">

<!-- Circular Stat -->
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/custom-plugins/circular-stat/circular-stat.css">

<!-- Fullcalendar -->
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/plugins/fullcalendar/fullcalendar.css" media="screen">
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/plugins/fullcalendar/fullcalendar.print.css" media="print">

<!-- End Plugin Stylesheets -->

<!-- Main Layout Stylesheet -->
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/assets/css/fonts/icomoon/style.css" media="screen">
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/assets/css/mooncake.min.css" media="screen">
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/assets/css/plugins/plugins.min.css" media="screen">

<!-- CSS choosen -->
<link rel="stylesheet" href="<?php echo $themeUrl; ?>/assets/css/chosen.css" media="screen">

<link rel="stylesheet" href="<?php echo $themeUrl; ?>/assets/css/custom.css" media="screen">

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<title>Trang quan ly chotoday</title>

</head>

<body>
	<div id="wrapper">
        <header id="header" class="navbar navbar-inverse">
            <div class="navbar-inner">
                <div class="container">
					<div class="brand-wrap pull-left">
						<div class="brand-img">
							<a class="brand" href="#">
								<img src="<?php echo $themeUrl;?>/assets/images/logo.png" alt="" style="width:230px;">
							</a>
						</div>
					</div>
                    
                    <div id="header-right" class="clearfix">
						<div id="nav-toggle" data-toggle="collapse" data-target="#navigation" class="collapsed">
							<i class="icon-caret-down"></i>
						</div>
						<div id="header-search">
							<span id="search-toggle" data-toggle="dropdown">
								<i class="icon-search"></i>
							</span>
							<form class="navbar-search">
								<input type="text" class="search-query" placeholder="Search">
							</form>
						</div>
						<div id="dropdown-lists">
							<a class="item" href="#">
								<span class="item-icon"><i class="icon-exclamation-sign"></i></span>
								<span class="item-label">Notifications</span>
								<span class="item-count">4</span>
							</a>
							<a class="item" href="mail.html">
								<span class="item-icon"><i class="icon-envelope"></i></span>
								<span class="item-label">Messages</span>
								<span class="item-count">16</span>
							</a>
						</div>
                        
                        <div id="header-functions" class="pull-right">
                        	<div id="user-info" class="clearfix">
                                <span class="info">
                                	Welcome
                                    <span class="name">Shana-chan</span>
                                </span>
                            	<div class="avatar">
                                	<a class="dropdown-toggle" href="#" data-toggle="dropdown">
                                    	<img src="<?php echo $themeUrl;?>/assets/images/pp.jpg" alt="Avatar">
                                    </a>
                                    <ul class="dropdown-menu pull-right">
                                    	<li><a href="profile.html"><i class="icol-user"></i> My Profile</a></li>
                                    	<li><a href="#"><i class="icol-layout"></i> admin</a></li>                                        
                                        <li class="divider"></li>
                                        <li><a href="index.html"><i class="icol-key"></i> Logout</a></li>
                                    </ul>
                                </div>
                            </div>
                            <div id="logout-ribbon">
                            	<a href="index.html"><i class="icon-off"></i></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </header>
        
        <div id="content-wrap">
        	<div id="content">
            	<div id="content-outer">
                	<div id="content-inner">
                    	<aside id="sidebar">
                        	<nav id="navigation" class="collapse">
                                <?php
                                    $this->widget('zii.widgets.CMenu', array(
                                        'activeCssClass' => 'active',
                                        'activateParents' => true,
                                        'items'=>array(
                                            array(
                                                'label'=>"Home", 
                                                'url'=>array('/admin'),
                                                'template' => '<span title="Home"><i class="icon-home"></i><span class="nav-title">Home</span></span>',
                                                'items' => array(
                                                    array('label' => 'Home','url' => array('/admin'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin"><i class="icon-heart" style="font-size:18px;">Home</i></a>'),
                                                ),
                                                'submenuOptions' => array('class' => 'inner-nav')
                                            ),
                                            array(
                                                'label'=>"Chuyên mục", 
                                                'url'=>array('/admin/catalog'),
                                                'template' => '<span title="Chuyên mục"><i class="icon-book"></i><span class="nav-title">Chuyên mục</span></span>',
                                                'items' => array(
                                                	array('label' => 'Chuyên mục','url' => array('#'),'template' => 'Chuyên Mục'),
                                                    array('label' => 'Create','url' => array('/admin/catalog/create'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/catalog/create"><i class="icon-plus" style="font-size:18px;"></i>Thêm</a>'),
                                                    array('label' => 'manage','url' => array('/admin/catalog/manage'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/catalog/manage"><i class="icon-list" style="font-size:18px;"></i>Quản lý</a>'),
                                                ),
                                                'submenuOptions' => array('class' => 'inner-nav')
                                            ),
                                            array(
                                                'label'=>"Sản phẩm", 
                                                'url'=>array('/admin/product'),
                                                'template' => '<span title="Sản phẩm"><i class="icon-gift"></i><span class="nav-title">Sản phẩm</span></span>',
                                                'items' => array(
                                                	array('label' => 'Sản phẩm','url' => array('#'),'template' => 'Sản phẩm'),
                                                    array('label' => 'Create','url' => array('/admin/product/create'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/product/create"><i class="icon-plus" style="font-size:18px;"></i>Thêm</a>'),
                                                    array('label' => 'manage','url' => array('/admin/product/manage'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/product/manage"><i class="icon-list" style="font-size:18px;"></i>Quản lý</a>'),
                                                ),
                                                'submenuOptions' => array('class' => 'inner-nav')
                                            ),
                                            array(
                                                'label'=>"Địa điểm", 
                                                'url'=>array('/admin/location'),
                                                'template' => '<span title="Địa điểm"><i class="icon-map-marker"></i><span class="nav-title">Địa điểm</span></span>',
                                                'items' => array(
													array('label' => 'Địa điểm','url' => array('#'),'template' => 'Địa điểm'),
                                                    array('label' => 'Create','url' => array('/admin/location/create'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/location/create"><i class="icon-plus" style="font-size:18px;"></i>Thêm</a>'),
                                                    array('label' => 'manage','url' => array('/admin/location/manage'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/location/manage"><i class="icon-list" style="font-size:18px;"></i>Quản lý</a>'),
                                                ),
                                                'submenuOptions' => array('class' => 'inner-nav')
                                            ),
                                            array(
                                                'label'=>"Thành viên", 
                                                'url'=>array('/admin/member'),
                                                'template' => '<span title="Thành viên"><i class="icon-users"></i><span class="nav-title">Thành viên</span></span>',
                                                'items' => array(
													array('label' => 'Thành viên','url' => array('#'),'template' => 'Thành viên'),
                                                    array('label' => 'Create','url' => array('/admin/member/create'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/member/create"><i class="icon-add-contact" style="font-size:18px;"></i>Thêm</a>'),
                                                    array('label' => 'manage','url' => array('/admin/member/manage'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/member/manage"><i class="icon-list" style="font-size:18px;"></i>Quản lý</a>'),
                                                ),
                                                'submenuOptions' => array('class' => 'inner-nav')
                                            ),
                                            array(
                                                'label'=>"Khách hàng", 
                                                'url'=>array('/admin/customer'),
                                                'template' => '<span title="Khách hàng"><i class="icon-official"></i><span class="nav-title">Khách hàng</span></span>',
                                                'items' => array(
													array('label' => 'Khách hàng','url' => array('#'),'template' => 'Khách hàng'),
                                                    array('label' => 'Create','url' => array('/admin/customer/create'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/customer/create"><i class="icon-plus-sign" style="font-size:18px;"></i>Thêm</a>'),
                                                    array('label' => 'manage','url' => array('/admin/customer/manage'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/customer/manage"><i class="icon-list" style="font-size:18px;"></i>Quản lý</a>'),
                                                ),
                                                'submenuOptions' => array('class' => 'inner-nav')
                                            ),
                                            array(
                                                'label'=>"Doanh nghiệp", 
                                                'url'=>array('/admin/store'),
                                                'template' => '<span title="Doanh nghiệp"><i class="icon-briefcase"></i><span class="nav-title">Doanh nghiệp</span></span>',
                                                'items' => array(
													array('label' => 'Doanh nghiệp','url' => array('#'),'template' => 'Doanh nghiệp'),
                                                    array('label' => 'Create','url' => array('/admin/store/create'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/store/create"><i class="icon-plus-sign" style="font-size:18px;"></i>Thêm</a>'),
                                                    array('label' => 'manage','url' => array('/admin/store/manage'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/store/manage"><i class="icon-list" style="font-size:18px;"></i>Quản lý</a>'),
                                                ),
                                                'submenuOptions' => array('class' => 'inner-nav')
                                            ),
                                            array(
                                                'label'=>"Thiết lập", 
                                                'url'=>array('/admin/config'),
                                                'template' => '<span title="Thiết lập"><i class="icon-cogs"></i><span class="nav-title">Thiết lập</span></span>',
                                                'items' => array(
													array('label' => 'Thiết lập','url' => array('#'),'template' => 'Thiết lập'),
                                                    array('label' => 'Create','url' => array('/admin/config/create'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/config/create"><i class="icon-plus" style="font-size:18px;"></i>Thêm</a>'),
                                                    array('label' => 'manage','url' => array('/admin/config/manage'),'template' => '<a href="'.Yii::app()->baseUrl.'/admin/config/manage"><i class="icon-list" style="font-size:18px;"></i>Quản lý</a>'),
                                                ),
                                                'submenuOptions' => array('class' => 'inner-nav')
                                            ),
                                        ),
                                        
                                    ));
                                ?>
                            </nav>
                        </aside>

                        <div id="sidebar-separator"></div>
                        
                        <section id="main" class="clearfix">
                        	<div id="main-header" class="page-header">
                                <?php if(isset($this->breadcrumbs)):?>
                                    <?php $this->widget('zii.widgets.CBreadcrumbs', array(
                                        'links'=>$this->breadcrumbs,
                                        'homeLink' => '<li><i class="icon-home"></i> Home </li>',
                                        'separator' =>'<li><span class="divider">&raquo;</span></li>',
                                        'tagName' => 'ul',
                                        'activeLinkTemplate' => "<li><a href='{url}'>{label}</a></li>",
                                        'inactiveLinkTemplate' => "<li>{label}</li>",
                                        'htmlOptions' => array('class' => 'breadcrumb')
                                    )); ?><!-- breadcrumbs -->
                                <?php endif?>
                            </div>
                            
                            <div id="main-content">
                            	<?php echo $content;?>
                            </div>
                        </section>
                    </div>
                </div>
            </div>
        </div>
        
        <footer id="footer">
            <div class="footer-left"></div>
            <div class="footer-right"><p>CHOTODAY.COM Copyright 2012. All Rights Reserved.</p></div>
        </footer>
        
    </div>
    <!-- Core Scripts -->
    <script src="<?php echo $themeUrl ?>/bootstrap/js/bootstrap.min.js"></script>
    <script src="<?php echo $themeUrl ?>/assets/js/libs/jquery.placeholder.min.js"></script>
    <script src="<?php echo $themeUrl ?>/assets/js/libs/jquery.mousewheel.min.js"></script>
    
    <!-- Template Script -->
    <script src="<?php echo $themeUrl ?>/assets/js/template.js"></script>
    <script src="<?php echo $themeUrl ?>/assets/js/setup.js"></script>

    <!-- Customizer, remove if not needed -->
    <script src="<?php echo $themeUrl ?>/assets/js/customizer.js"></script>

    <!-- Uniform Script -->
    <script src="<?php echo $themeUrl ?>/plugins/uniform/jquery.uniform.min.js"></script>
    
    <!-- jquery-ui Scripts -->
    <script src="<?php echo $themeUrl ?>/assets/jui/js/jquery-ui-1.8.24.min.js"></script>
    <script src="<?php echo $themeUrl ?>/assets/jui/jquery-ui.custom.min.js"></script>
    <script src="<?php echo $themeUrl ?>/assets/jui/timepicker/jquery-ui-timepicker.min.js"></script>
    <script src="<?php echo $themeUrl ?>/assets/jui/jquery.ui.touch-punch.min.js"></script>
    
    <!-- Plugin Scripts -->
    
    <!-- Flot -->
    <!--[if lt IE 9]>
    <script src=<?php echo $themeUrl ?>/"assets/js/libs/excanvas.min.js"></script>
    <![endif]-->
    <script src="<?php echo $themeUrl ?>/plugins/flot/jquery.flot.min.js"></script>
    <script src="<?php echo $themeUrl ?>/plugins/flot/plugins/jquery.flot.tooltip.min.js"></script>
    <script src="<?php echo $themeUrl ?>/plugins/flot/plugins/jquery.flot.pie.min.js"></script>
    <script src="<?php echo $themeUrl ?>/plugins/flot/plugins/jquery.flot.resize.min.js"></script>

    <!-- Circular Stat -->
    <script src="<?php echo $themeUrl ?>/custom-plugins/circular-stat/circular-stat.min.js"></script>

    <!-- SparkLine -->
    <script src="<?php echo $themeUrl ?>/plugins/sparkline/jquery.sparkline.min.js"></script>
    
    <!-- iButton -->
    <script src="<?php echo $themeUrl ?>/plugins/ibutton/jquery.ibutton.js"></script>

    <!-- Full Calendar -->
    <script src="<?php echo $themeUrl ?>/plugins/fullcalendar/fullcalendar.min.js"></script>
    
    <!-- DataTables -->
    <script src="<?php echo $themeUrl ?>/plugins/datatables/jquery.dataTables.min.js"></script>
    <script src="<?php echo $themeUrl ?>/plugins/datatables/TableTools/js/TableTools.min.js"></script>
    <script src="<?php echo $themeUrl ?>/plugins/datatables/dataTables.bootstrap.js"></script>
    
    <!-- Jquery Choosen -->
    <script src="<?php echo $themeUrl ?>/assets/js/jquery.chosen.min.js"></script>

    <!-- Demo Scripts -->
    <script src="<?php echo $themeUrl ?>/assets/js/demo/dashboard.js"></script>
    <script type="text/javascript">
        $(".chosen").chosen();
    </script>
</body>

</html>
